package week4.homework;

//************************************************************************************
// Transactions.java      Author :Duanzhixuan
//
//Demonstrates the creation and use of multiple Account objects.
//*************************************************************************************
public class Transactions {
    //------------------------------------------------------------------------
    // Creates some bank accounts and requuests various services.
    //--------------------------------------------------------------------------
    public static void main(String[] args)
    {
        Account acct1 = new Account("Ted Murphy",72354,102.56);
        Account acct2 = new Account("Jane Smith",69713,40.00);
        Account acct3 = new Account("Edward Drmsey", 93757,759.32);
        Account acct4 = new Account("Duanzhixuan",25225);

        acct1.deposit(25.85);

        double smithBanlance = acct2.deposit(500.00);
        System.out.println("Smith balance after deposit:"+acct2.withdraw(430.75,1.50));

        acct1.addinterest();
        acct2.addinterest();
        acct3.addinterest();

        System.out.println();
        System.out.println(acct1);
        System.out.println(acct2);
        System.out.println(acct3);
        System.out.println(acct4);
        }

    }

